package com.wdg.common.factoy;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 拦截所有的请求
 */
@Component
public class WoWoAIWebMvcConfigurer implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
            registry.addInterceptor(new WoWoAIHandlerInterceptor())
                    .addPathPatterns("/**");
    }
}
